package com.eastfair.projectcore.service;

import com.eastfair.core.base.R;
import com.eastfair.projectcore.dto.ExhibitionDTO;
import com.eastfair.projectcore.entity.Exhibition;
import com.eastfair.boot.service.SuperService;
import com.eastfair.projectcore.vo.ExhibitionVO;

import java.util.List;

/**
 * <p>
 * 业务接口
 *
 * </p>
 *
 * @author ligang
 * @date 2021-07-22
 */
public interface ExhibitionService extends SuperService<Exhibition> {
    /**
     * 业务功能:添加展会
     * @return
     */
    R<Exhibition> executeCreateExhibition(ExhibitionDTO exhibitionDTO);


    /**
     * 业务功能:修改展会
     * @return
     */
    R<Exhibition> executeUpdExhibition(ExhibitionDTO exhibitionDTO);

    /**
     * 查询展会和角色
     * @param id
     * @return
     */
    ExhibitionVO getAndRoleById(Long id);

    /**
     * 查询
     * @param exhibition
     * @param ids
     * @return
     */
    List<Exhibition> list(Exhibition exhibition, List<Long> ids);

    /**
     * 根据项目查询展会
     * @param projectId
     * @return
     */
    List<ExhibitionVO> queryOfProject(Long projectId);
}
